export const fieldMap = {
  // 售后单信息
  "售后id": 'afterSaleId',
  "售后单号": 'afterSaleSn',
  "内部系统订单号": 'orderSn',
  "售后类型": 'afterType',
  "店铺名称": 'ecStoreName',
  "店铺id": 'ecStoreId',
  "退货备注": 'refundRemarks',
  "退货物流单号": 'refundLogisticsNo',
  "退货物流公司名称": 'refundLogisticsCompany',
  "退货物流id": 'refundLogisticsId',
  "退货物流公司code": 'refundLogisticsCode',
  
  // 商品信息
  "售后商品列表": 'goodsList',

  "供应商商品图片": 'goodsImage', // 字段没返回
  "供应商商品名称": 'goodsName',
  "供应商商品编码": 'sku', // 字段没返回
  "供应商商品编码id": 'skuId', // 字段没返回
  "供应商款式编码": 'spu',
  "供应商颜色规格": 'goodsSpec',
  "供应商商品单价": 'goodsPrice',
  "供应商商品id": 'goodsId',

  
  "店铺商品图片": "ecGoodsImage",
  "店铺商品名称": "ecGoodsName",
  "店铺商品编码": "ecSkuId",
  "店铺款式编码": "ecSpuId",
  "店铺颜色规格": "ecGoodsSpec",
  "店铺商品单价": "ecGoodsPrice",
  
  "系统商品图片": "sysGoodsImage",
  "系统商品名称": "sysGoodsName",
  "系统商品编码": "sysSkuCode",
  "系统款式编码": "sysSpuCode",
  "系统颜色规格": "sysGoodsSpec",
  "系统商品单价": "goodsPrice",
  "系统商品id": "sysGoodsId",

  "售后商品id": 'afterSaleGoodsId',

  "拆包数量": 'unpackNum', // 前端输入框赋值
  "次品数量": 'defectiveNum', // 前端勾选商品为次品的时候，次品数量对应也需要增加
  "申请退货数量": 'goodsNum',
  "商品唯一码": 'uniqueCodes', // [{value: 唯一码的值, status： 唯一码的状态 1正常 2次品}]
  "退款金额": 'refundAmount', // 拆包数量 * 系统商品单价
  "供应商": 'storeName',
  "供应商id": 'storeId',
  "用户id": "uuid",

  // 下面是自定义字段，前端使用
  "是否是新增商品": "isNewGoods",
  "是否选中商品": "isSelectGoods",
}

/**
 * 选择商品字段map
 */
export const selectGoodsFieldMap = {
  "次品商品唯一码集合": "defectiveUniqueCodes",
  "正品商品唯一码集合": "normalUniqueCodes",
  "拆包数量": "unpackingNum",

  "供应商ID": "storeId",
  "供应商名称": "storeName",
  "供应商商品id": "supplierId",
  "供应商商品图片": "supplierSkuImage",
  "供应商商品名称": "supplierSkuName",
  "供应商颜色规格": "supplierSkuSpecs",
  "商品编码": "skuCode",
  "skuId": "supplierSkuId",
  "款式编码": "spuCode",
  
  "商品数量": "num",
  "系统商品id": "id",
  "系统商品图片": "image",
  "系统商品名称": "skuName",
  "系统颜色规格": "specs",
  "系统商品单价": "retailPrice",
  "商品编码": "skuCode",
  "款式编码": "spuCode",

  "用户ID": "uuid",
}